package components;

import cars.Car;

public class TripComputer {
    private Car car;

    public void setCar(Car car) {
        this.car = car;
    }

    public  void  showFuelLevel() {
        System.out.println("Fuel level" + car.getFuel());
    }

    public void showStatus() {
        if (car.getEngine().isStarted()) {
            System.out.println("车辆已经启动");
        } else {
            System.out.println("车辆未启动");
        }
    }
}
